package leetcode.code0725;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;
import leetcode.helper.tree.ListNode;

public abstract class Solution725 implements IDebug {
	public abstract ListNode[] splitListToParts(ListNode head, int k);

	@Override
	public void debug1() {
		String str1 = "[1,2,3]";
		int k = 5;
		String str2 = "[[1],[2],[3],[],[]]";
		debug(str1, k, str2);
	}

	private void debug(String str1, int k, String str2) {
		ListNode head = ListNode.set(HelpDebug.str2array3(str1));
		ListNode[] r = this.splitListToParts(head, k);
		ListNode[] e = ListNode.set2array(HelpDebug.str2array1(str2));
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		String str1 = "[1,2,3,4,5,6,7,8,9,10]";
		int k = 3;
		String str2 = "[[1,2,3,4],[5,6,7],[8,9,10]]";
		debug(str1, k, str2);
	}

	@Override
	public void debug3() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
